package cn.tedu.springdemo.bean;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class DemoBean implements IDemoBean {
    private static Logger logger = LoggerFactory.getLogger(DemoBean.class);
    public DemoBean(){
        System.out.println("DemoBean.DemoBean");
    }

    @PostConstruct
    public void init(){
        System.out.println("DemoBean.init");
    }

    public void demo(){
        //System.out.println("DemoBean.demo");
        logger.debug("DemoBean.demo");
    }
}
